package task1;

public class Calculator implements CalculatorInterface{

	@Override
	public int add(int x, int y) {
		return x+y;
	}

	@Override
	public int subtract(int x, int y) {
		return x-y;
	}

	@Override
	public int multiply(int x, int y) {
		return x*y;
	}

	@Override
	public int divide(int x, int y) {
		if (y==0) {
			return 0;
		}
		return x/y;
	}

}
